package com.bean;

/**
 * @ClassName HistoryReturn
 * @Desc 图书借阅历史功能综合类
 * @Author xiaoding
 * @Date 2021/1/10 22:32
 * @Version 1.0
 */

public class HistoryReturn {
    //功能属性
    private int hId;
    private int uId;
    private int bId;
    private String bName;
    private String flag;
    private int page;
    private int currPage;
    private int start;

    //构造方法
    public HistoryReturn() {}
    public HistoryReturn(int hId, int uId, int bId, String bName, String flag, int page, int currPage) {
        this.hId = hId;
        this.uId = uId;
        this.bId = bId;
        this.bName = bName;
        this.flag = flag;
        this.page = page;
        this.currPage = currPage;
    }
    public HistoryReturn(int uId, String flag, int page, int currPage) {
        this.uId = uId;
        this.flag = flag;
        this.page = page;
        this.currPage = currPage;
    }
    public HistoryReturn(String flag, int page, int currPage) {
        this.flag = flag;
        this.page = page;
        this.currPage = currPage;
    }
    public HistoryReturn(int uId, String bName, String flag ,int page, int currPage) {
        this.uId = uId;
        this.bName = bName;
        this.flag = flag;
        this.page = page;
        this.currPage = currPage;
    }
    public HistoryReturn(int uId, int bId, String flag) {
        this.uId = uId;
        this.bId = bId;
        this.flag = flag;
    }
    public HistoryReturn(int uId, String flag) {
        this.uId = uId;
        this.flag = flag;
    }
    public HistoryReturn(String flag, int hId) {
        this.flag = flag;
        this.hId = hId;
    }
    public HistoryReturn(String flag, String bName) {
        this.flag = flag;
        this.bName = bName;
    }
    public HistoryReturn(int uId, String bName, String flag) {
        this.uId = uId;
        this.bName = bName;
        this.flag = flag;
    }
    public HistoryReturn(String flag, String bName, int page, int currPage) {
        this.flag = flag;
        this.bName = bName;
        this.page = page;
        this.currPage = currPage;
    }

    //get、set方法
    public int gethId() {
        return hId;
    }

    public int getuId() {
        return uId;
    }

    public int getbId() {
        return bId;
    }

    public String getbName() {
        return bName;
    }

    public String getFlag() {
        return flag;
    }

    public int getPage() {
        return page;
    }

    public int getCurrPage() {
        return currPage;
    }

    public int getStart() {
        return (page - 1)*currPage;
    }

    public void sethId(int hId) {
        this.hId = hId;
    }

    public void setuId(int uId) {
        this.uId = uId;
    }

    public void setbId(int bId) {
        this.bId = bId;
    }

    public void setbName(String bName) {
        this.bName = bName;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public void setCurrPage(int currPage) {
        this.currPage = currPage;
    }

    public void setStart(int start) {
        this.start = start;
    }

    @Override
    public String toString() {
        return "HistoryReturn{" +
                "hId=" + hId +
                ", uId=" + uId +
                ", bId=" + bId +
                ", bName='" + bName + '\'' +
                ", flag='" + flag + '\'' +
                ", page=" + page +
                ", currPage=" + currPage +
                ", start=" + start +
                '}';
    }
}
